
<table id="LAY-create_video-manage" lay-filter="LAY-create_video-manage"></table>
<script type="text/html" id="pathVideo">
    <a target="_blank" href="{{ d.path }}">查看</a>
</script>
<script type="text/html" id="is_complete">
    {{ d.is_complete == 1 ? '是' : '否' }}
</script>
<script type="text/html" id="type">
    {{# if(d.type == 0){'视频'} }}
    {{# if(d.type == 1){'音频'} }}
    {{# if(d.type == 2){'图片'} }}
</script>
<script type="text/html" id="ctimeTpl">
    {{# var date = new Date(d.createtime * 1000);
    var dt = date.getFullYear() + '-';
    dt += (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
    dt += (Array(2).join(0) + date.getDate()).slice(-2) + ' ';
    dt += (Array(2).join(0) + date.getHours()).slice(-2) + ':';
    dt += (Array(2).join(0) + date.getMinutes()).slice(-2) + ':';
    dt += (Array(2).join(0) + date.getSeconds()).slice(-2); }}
    {{ dt }}
</script>
<script type="text/html" id="table-create_video-oper">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
</script>
<script>
    layui.use('create_video', layui.factory('create_video')).use(['admin', 'create_video', 'table', 'upload'], function(){
        var $ = layui.$
            ,admin = layui.admin
            ,view = layui.view
            ,table = layui.table
            ,form = layui.form
            ,upload = layui.upload;

    });
</script>